package com.dst.service.impl;

import com.dst.dao.CategoryMapper;
import com.dst.entity.Category;
import com.dst.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("categoryService")
public class CategroyServiceImpl implements CategoryService {
    @Autowired
    @Qualifier("categoryMapper")
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> selectGranding() {
        return categoryMapper.selectGrading();
    }
}
